@import "http://fonts.googleapis.com/css?family=Open+Sans:300,400&subset=latin,cyrillic";
@font-face {
  font-family: 'Segoe UI';
  src: url('../fonts/SegoeUI.eot');
  src: local('☺'), url('../fonts/SegoeUI.woff') format('woff'), url('../fonts/SegoeUI.ttf') format('truetype'), url('../fonts/SegoeUI.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Segoe UI Light';
  src: url('../fonts/SegoeUI_Light.eot');
  src: local('☺'), url('../fonts/SegoeUI_Light.woff') format('woff'), url('../fonts/SegoeUI_Light.ttf') format('truetype'), url('../fonts/SegoeUI_Light.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}


@mainColor: #4b3c39;
@headerFooterBgColor: #fcfcfc;
@headerFooterBorderColor: rgba(0,0,0,0.05);
@linkColor: @mainColor;
@linkHoverColor: #6cbffd;
@linkHoverColor2: #0084ff;
@tagColor: @mainColor;
@tagRadius: 5px;
@logoTagRadius: 6px;
@logoDotRadius: 3px;
@searchTagWidth: 900px;
@promoBorderColor: #ebebeb;
@promoShadowColor: #dbd8d7;
@promoCirc: 5px;
@modalRadius: 10px;
@inputHeight: 26px;


.shadow(@arguments) {
  -webkit-box-shadow: @arguments;
  -moz-box-shadow: @arguments;
  box-shadow: @arguments;
}

.radius(@r1, @r2, @r3, @r4) {
  -webkit-border-radius: @arguments;
  -moz-border-radius: @arguments;
  border-radius: @arguments;
}




html,
body {
  width: 100%;
  background-color: ffffff;
  font-family: "Segoe UI", "Open Sans", sans-serif;
}

a, a:active{
  color: @linkColor;
  &:hover{
    color: @linkHoverColor;
    cursor: pointer;
  }
  &.active{
    color: @linkHoverColor;
  }
}

.underlined{
  text-decoration: none;
  border-bottom: 1px solid @linkHoverColor2;
  &:hover, &.active{
    color: @linkHoverColor2;
    border:0;
  }
  &.active{
    border-bottom: 1px solid @linkHoverColor2;
  }
}

ul{
  padding: 0;
  margin: 0;
}

input[type='text']{
  outline:0;
}

.wrap{
  width:900px;
  margin:0 auto;
  position: relative;
}

i.icon{
  display: inline-block;
  background: url("../img/icons.png") 0 0 no-repeat;
  &.icon-vk{
    background-position: 0 0;
    width: 32px;
    height: 32px;
  }
  &.icon-fb{
    background-position: 0 -50px;
    width: 32px;
    height: 32px;
  }
  &.icon-tw{
    background-position: 0 -100px;
    width: 32px;
    height: 32px;
  }
  &.icon-g{
    background-position: 0 -150px;
    width: 32px;
    height: 32px;
  }
  &.icon-star-large{
    background-position: -50px 0;
    width: 27px;
    height: 27px;
  }
  &.icon-star{
    background-position: -50px -50px;
    width: 15px;
    height: 13px;
  }
  &.icon-menu{
    background-position: -50px -100px;
    width: 15px;
    height: 13px;
  }
  &.icon-plus{
    background-position: -50px -150px;
    width: 15px;
    height: 12px;
  }
  &.icon-add{
    background-position: -50px -200px;
    width: 27px;
    height: 27px;
  }
  &.icon-tag-large{
    background-position: -100px -100px;
    width: 40px;
    height: 40px;
  }
  &.icon-tag{
    background-position: -50px -250px;
    width: 24px;
    height: 20px;
  }
  &.icon-ok{
    background-position: -50px -300px;
    width: 12px;
    height: 12px;
  }
  &.icon-error{
    background-position: -50px -350px;
    width: 12px;
    height: 12px;
  }
  &.icon-search{
    background-position: -100px 0;
    width: 50px;
    height: 50px;
  }
  &.icon-checkbox{
    background-position: -100px -200px;
    width: 18px;
    height: 18px;
    &.checked{
      background-position: -100px -150px;
    }
  }
}

.tag{
  display: inline-block;
  background-color: @tagColor;
  .radius(0, @logoTagRadius, @logoTagRadius, 0);
  position: relative;
  &:before{
    content:"";
    position: absolute;
    top:0;
    border: 22px solid transparent;
    border-right:15px solid @tagColor;
    left:-37px;
  }
  &.tag-small{
    background-color: #f8f8f8;
    .radius(0, 5px, 5px, 0);
    .shadow(0 1px 0 rgba(0,0,0,0.09));
    height: 24px;
    line-height: 24px;
    padding: 0 4px 0 3px;
    &:before{
      border: 12px solid transparent;
      border-right:8px solid #f8f8f8;
      left:-20px;
    }
  }
}

ul.tagit li.tagit-choice {
  position: relative;
  line-height: 1.15em;
  display: inline-block;
  background-color: @tagColor;
  .radius(0, @tagRadius, @tagRadius, 0);
  color: #fff;
  padding: 0 10px 6px 5px;
  margin:8px 0 0 25px;
  font-size: 25px;
  &:before{
    content:"";
    position: absolute;
    top:0;
    border: 17px solid transparent;
    border-right:12px solid @tagColor;
    left:-29px;
  }
  &:first-child{
    margin-left:14px;
  }
}

.tag-search{
  .control{
    margin-left:30px;
    padding-bottom:18px;
    li{
      display: inline-block;
      list-style: none;
      font-size: 21px;
      font-weight: 300;
      color: #b6b6b6;
      text-decoration: underline;
      margin-right: 30px;
      position: relative;
      &:hover{
        color: @mainColor;
        cursor: pointer;
      }
      &.active{
        color: @mainColor;
        text-decoration: none;
        cursor: default;
      }
      .icon{
        margin-right:5px;
      }
      &.active:before, &.active:after{
        content:"";
        position: absolute;
        bottom:-18px;
        left:50%;
        margin-left:-5px;
        border: 10px solid transparent;
        border-bottom-color: rgba(75, 60, 57, 0.45);
      }
      &.active:after{
        bottom:-19px;
        border-bottom:10px solid #fff;
        z-index: 10;
      }
    }
  }
  .form{
    width:@searchTagWidth;
    height:50px;
    margin:0 auto;
    border: 1px solid rgba(75, 60, 57, 0.45);
    background-color: #fff;
    position:relative;
    .radius(100px, 100px, 100px, 100px);
    .shadow(0px 2px 0 #99908e);
    i.icon-tag-large{
      margin:14px 10px 0 16px;
    }
    i.icon-search{
      position: absolute;
      top:2px;
      right:-2px;
      &:hover{
        cursor: pointer;
      }
    }
    ul.tagit{
      position: absolute;
      top:0;
      left:65px;
      border:0;
      outline:0;
      padding: 0;
      width:@searchTagWidth - 130;
      height: 46px;
      font: 22px "Open Sans", sans-serif;
    }
  }
}

.modal-wrap{
  position: relative;
  a{
    position: relative;
    z-index: 20;
  }
  .modal{
    display:none;
    position: absolute;
    z-index:14;
    background: #f7f7f7 url(../img/modal-bg.png) 0 0 repeat;
    .shadow(0 2px 6px #bcbcbc);
    border:1px solid #fff;
    text-align: center;
    width: 426px;
    line-height: normal;.modal-form{
    .input{
      display: inline-block;
      background-color: #fff;
      .shadow(inset 0 1px 0 #d8d8d8);
      .radius(@inputHeight / 2.2, @inputHeight / 2.2, @inputHeight / 2.2, @inputHeight / 2.2);
      border: 0;
      outline:0;
      width:360px;
      height: @inputHeight;
      resize:none;
      padding: 0 15px;
      margin-top:20px;
      color:#a7a7a7;
      font:15px "Segoe UI";
      &.input-tag{
        width:335px;
        padding-left: 40px;
      }
    }
    textarea.input{
      padding: 7px 15px;
    }
    .status{
      font-size: 13px;
      font-weight: 300;
      text-align: right;
      overflow: hidden;
      padding:0 20px 1px;
      margin: 20px 0;
      .success, .error{
        float: left;
        display: none;
        margin-top: 5px;
      }
      .success{
        color: #5a5a5a;
      }
      .error{
        color: #ff162c;
      }
    }
    .button{
      display: inline-block;
      background-color: #6cbffd;
      .shadow(0 1px 0 #007bd6);
      .radius(5px, 5px, 5px, 5px);
      color: #ffffff;
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      padding: 5px 10px;
      &:hover{
        cursor: pointer;
        background-color: darken(#6cbffd, 10%);
      }
    }
    .checkbox{
      float: left;
      margin-top: 2px;
      color: #9c9b9b;
      font-size: 14px;
      &:hover{
        cursor: pointer;
      }
      i{
        position: relative;
        top:5px;
      }
      input[type="checkbox"]{
        display: none;
      }
    }
    .social{
      background-color: rgba(255,255,255,0.5);
      border-top:1px solid rgba(0,0,0,0.08);
      text-align: left;
      padding:8px 10px;
      .social-text{
        display: inline-block;
        text-align:right;
        width:175px;
        font-size: 13px;
        color: @mainColor!important;
        text-shadow: 0 1px 0 #ffffff;
      }
      .social-icons{
        display: inline-block;
        position: relative;
        top: 3px;
        li{
          display: inline-block;
          margin-left: 15px;
          &:first-child{
            margin-left: 33px;
          }
        }
      }
    }
    &.success{
      .success{
        display: block;
      }
    }
    &.error{
      .error{
        display: block;
      }
    }
  }
    &:after{
      content: "";
      position: absolute;
      z-index:15;
      height: 46px;
      background: #f7f7f7 url(../img/modal-bg.png) 0 0 repeat;
      border:1px solid #fff;
    }
    &.modal-top{
      top:92px;
      &:after{
        background-position: 4px 0;
        width: 150px;
        top:-47px;
        border-bottom:0;
        .radius(@modalRadius, @modalRadius, 0, 0);
      }
      &:before{
        content: "";
        position: absolute;
        top: -40px;
        z-index:13;
        height: 46px;
        background: transparent;
        border:0;
        .shadow(0 -6px 6px #bcbcbc);
        .radius(@modalRadius, @modalRadius, 0, 0);
      }
    }
    &.modal-add{
      left:-7px;
      .radius(0, @modalRadius, @modalRadius, @modalRadius);
      .icon-tag{
        position:absolute;
        top: 69px;
        left: 26px;
        z-index: 21;
      }
      &:after{
        left:-1px;
        width:140px;
      }
      &:before{
        left:-1px;
        width: 142px;
      }
    }
    &.modal-signup{
      left:-160px;
      .radius(@modalRadius, @modalRadius, @modalRadius, @modalRadius);
      .button{
        padding-left: 24px;
        padding-right: 24px;
      }
      &:after{
        left:148px;
        width:170px;
      }
      &:before{
        left:148px;
        width: 172px;
      }
    }
    &.modal-signin{
      left:-339px;
      .radius(@modalRadius, @modalRadius, @modalRadius, @modalRadius);
      .checkbox{
        margin-left:170px;
      }
      .button{
        padding-left: 14px;
        padding-right: 14px;
      }
      &:after{
        left:326px;
        width:70px;
      }
      &:before{
        left:326px;
        width: 72px;
      }
    }
    &.modal-feedback{
      bottom:37px;
      right:22px;
      .radius(@modalRadius, @modalRadius, 0, @modalRadius);
      textarea.input{
        height:50px;
      }
      .status{
        .success{
          margin-left:110px;
        }
        .error{
          margin-left:-10px;
        }
      }
      &:after{
        background-position: 3px 0;
        width: 150px;
        bottom:-46px;
        right:-1px;
        border-top:0;
        .radius(0, 0, @modalRadius, @modalRadius);
        .shadow(0 3px 3px #bcbcbc);
      }
    }
  }
}




//HEADER
header{
  width: 100%;
  height: 125px;
  background-color: @headerFooterBgColor;
  .shadow(0 1px 1px @headerFooterBorderColor);
  line-height: 125px;
  margin-bottom:2px;
  .logo{
    text-align: center;
    width: 280px;
    height: 125px;
    line-height: 137px;
    background: url("../img/logo-bg.png") 0 0 repeat;
    a, a:active{
      color:#fff;
      text-decoration: none;
      font-size: 35px;
      font-family: "Segoe UI Light";
      font-weight: 300;
      line-height: 1em;
      padding: 1px 18px 8px 20px;
      margin:0 0 0 12px;
      &:after{
        content: "";
        position: absolute;
        width: @logoDotRadius * 2;
        height: @logoDotRadius * 2;
        top:19px;
        left:0;
        background-color: #fff;
        .radius(@logoDotRadius, @logoDotRadius, @logoDotRadius, @logoDotRadius);
      }
    }
  }
  nav{
    position: absolute;
    top:0;
    right:0;
    > ul > li {
      display: inline-block;
      margin-left:25px;
      color: @linkColor;
      font-size: 14px;
      font-family: "Segoe UI Light";
      &.username{
        font-weight: 300;
      }
      &.slash{
        background: url("../img/slash.png") 0 0 no-repeat;
        width: 27px;
        height: 73px;
        position: relative;
        top: 35px;
        margin-left:-3px;
      }
      &:last-child{
        margin-left:-3px;
      }
      a, a:active{
        text-transform: uppercase;
        &.active{
          color: @linkHoverColor;
        }
      }
    }
  }
}


//INDEX
.content{
  background-color: #ffffff;
  .welcome{
    color: @tagColor;
    font-size: 34px;
    font-family: "Segoe UI Light";
    font-weight: 300;
    text-align: center;
    margin: 50px 0 105px;
    .fav{
      text-transform: capitalize;
      margin-left: 8px;
    }
  }
  .tag-search{
    margin-bottom: 100px;
  }
  .promo{
    margin-bottom:50px;
    overflow: hidden;
    padding:0 0 5px 5px;
    position: relative;
    .line{
      width:100%;
      height: 1px;
      background-color: @promoBorderColor;
      position: absolute;
      top:123px;
      z-index: 5;
    }
    .wrap{
      width:900px;
      margin:0 auto;
    }
    .promo-block{
      position: relative;
      z-index: 10;
      width:260px;
      height:250px;
      float:left;
      color: @mainColor;
      background-color: #fcfcfc;
      border:1px solid @promoBorderColor;
      .shadow(0 1px 1px @promoShadowColor);
      .radius(8px, 8px, 8px, 8px);
      &:nth-child(2){
        margin:0 55px;
      }
      .promo-block-logo{
        width:100%;
        height:100px;
        background: url("../img/promo.png") 0 0 no-repeat;
        margin-bottom:35px;
      }
      &.promo-block-1 .promo-block-logo{
        background-position: 10px -6px;
      }
      &.promo-block-2 .promo-block-logo{
        background-position: 15px -140px;
      }
      &.promo-block-3 .promo-block-logo{
        background-position: 15px -296px;
      }
      h3{
        text-align: center;
        font-size: 20px;
        font-weight: 500;
        margin: 0 0 10px 0;
      }
      p{
        font-size: 16px;
        margin:0 15px;
      }
      &:before, &:after{
        content: "";
        position: absolute;
        top:120px;
        z-index: 1;
        background-color: @promoBorderColor;
        width: @promoCirc;
        height: @promoCirc;
      }
      &:before{
        left:-(@promoCirc / 2 + 2.5);
        .radius(@promoCirc, 0, 0, @promoCirc);
      }
      &:after{
        right:-(@promoCirc / 2 + 2.5);
        .radius(0, @promoCirc, @promoCirc, 0);
      }
    }
  }
  &.user-index{
    h1{
      margin-bottom: 50px;
    }
  }
  &.search{
    .search-form{
      height: 105px;
      padding: 20px 0 ;
      background: url(../img/user-menu-bg.png) 0 0 repeat;
    }
    .search-result{
      width: 900px;
      margin: 20px auto 80px;
      padding: 5px 10px 0;
      overflow: hidden;
      .col{
        float:left;
        width:433px;
        &.right{
          margin-left:30px;
        }
      }
      .search-result-item{
        width: 431px;
        border:1px solid #dadada;
        .shadow(0 2px 4px rgba(218,218,218,0.7));
        position: relative;
        margin-bottom:25px;
        .add{
          position: absolute;
          top: -3px;
          right: -5px;
          z-index: 3;
          &:hover{
            cursor:pointer;
          }
        }
        .screen{
          width: 431px;
          height: 142px;
        }
        .text{
          padding: 10px 10px 3px 10px;
          font-family: "Open Sans", sans-serif;
          font-weight: 400;
          .title{
            margin-bottom:4px;
            a, a:active{
              color:#0072ff;
              font-size: 15px;
              text-decoration: underline;
              &:hover{
                color: darken(#0072ff, 20%);
              }
            }
          }
          .link{
            color: #8b6938;
            font-size: 13px;
            margin-bottom:10px;
            background-position: 0 70%;
            background-repeat: no-repeat;
            background-size: 16px 16px;
            padding-left: 24px;
          }
          .desc{
            color: @mainColor;
            font-size: 13px;
            margin-bottom:12px;
          }
          .tags-list{
            text-align: right;
            .tag-item{
              list-style: none;
              display: inline-block;
              color: #979797;
              font-size: 14px;
              margin:0 0 8px 14px;
              font-weight: 300;
            }
          }
        }
      }
    }
  }
}



//FOOTER
footer{
  background-color: @headerFooterBgColor;
  .shadow(0 -1px 1px @headerFooterBorderColor);
  padding: 25px 0 50px;
  .feedback{
    color: #898989;
    font-size: 14px;
    text-align: right;
    background: url("../img/arrow.png") 637px 4px no-repeat;
    padding-bottom: 15px;
    a, a:active{
      .underlined;
      display: inline-block;
      margin: 15px 35px 0 0;
      font-size:18px;
      line-height: 1.1em;
    }
  }
}

